package mobidever.mygodutch.adapter.base;

import java.util.List;

import android.content.Context;
import android.view.InflateException;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

public abstract class AdapterBase extends BaseAdapter
{
	private List mList;
	private Context mContext;
	private LayoutInflater mLayoutInflater;

	public AdapterBase(List pList, Context pContext)
	{
		mList = pList;
		mContext = pContext;

		mLayoutInflater = LayoutInflater.from(mContext);
	}

	public int getCount()
	{
		return mList.size();
	}

	public Object getItem(int position)
	{
		return mList.get(position);
	}

	public long getItemId(int position)
	{
		return position;
	}

	public Context getContext()
	{
		return mContext;
	}

	public void setContext(Context mContext)
	{
		this.mContext = mContext;
	}

	public LayoutInflater getLayoutInflater()
	{
		return mLayoutInflater;
	}

	public void setLayoutInflater(LayoutInflater mLayoutInflater)
	{
		this.mLayoutInflater = mLayoutInflater;
	}

	public List getList()
	{
		return mList;
	}

	public void setList(List mList)
	{
		this.mList = mList;
	}

}
